package edu.Pta;

import java.util.Scanner;

public class ptaDemo1 {
        public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            String str = scan.nextLine();
            char[] chars = str.toCharArray();//将字符串对象中的字符转换为一个字符数组
            int a=0,b=0,c=0,d=0;
            for(int i=0;i<chars.length;i++) {
                if((chars[i]>='A' && chars[i]<='Z') || (chars[i]>='a' && chars[i]<='z')){
                    a++;
                }else if(chars[i]>=47 && chars[i]<=57) {
                    b++;
                }else if(chars[i]==32) {
                    c++;
                }else {
                    d++;
                }
            }
            System.out.println(str+"中");
            System.out.println("字母个数："+a);
            System.out.println("数字个数："+b);
            System.out.println("空格个数："+c);
            System.out.println("其他字符个数："+d);
        }
}